<%--
  Created by IntelliJ IDEA.
  User: LEGION
  Date: 2021/11/1
  Time: 18:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="style.css">
    <title>学生选课系统</title>
    <style>
        body{
            background-image: url("http://www.kmu.edu.cn/images/bg2.jpg");
        }
    </style>
</head>
<body bgcolor="#D9DFAA">
<table width="400" border="1">
    <caption>所有课程信息</caption>
    <tr>
        <th>课程号</th><th>课程名</th><th>开学学期</th><th>学时</th><th>学分</th><th>操作</th>
    </tr>
    <s:iterator value="#request.list" var="kc">
        <tr>
            <td align="center"><s:property value="#kc.courseId"/></td>
            <td align="center"><s:property value="#kc.courseName"/></td>
            <td align="center"><s:property value="#kc.schoolTerm"/></td>
            <td align="center"><s:property value="#kc.classHour"/></td>
            <td align="center"><s:property value="#kc.credit"/></td>
            <td align="center">
                <a href="selectKc.action?kcb.courseId=<s:property value="#kc.courseId"/>"
                   onClick="if(!confirm('您确定选修该课程吗？'))
					return false;else return true;">选修</a>
            </td>
        </tr>
    </s:iterator>
</table>
</body>
</html>

